//
//  CookBookStepTableViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/9/20.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "CookBookStepTableViewCell.h"
#import "MasterCookBookSteps.h"
#import "MasterCookBookTips.h"
@interface CookBookStepTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *ord;

@end

@implementation CookBookStepTableViewCell

- (void)setSteps:(MasterCookBookSteps *)steps {
    _content.text = steps.content;
    NSInteger num = [steps.ord integerValue];
    num += 1;
    _ord.text = [NSString stringWithFormat:@"%ld.", num];
}
- (void)setTips:(MasterCookBookTips *)tips {
    _content.text = tips.content;
    NSInteger num = [tips.ord integerValue];
    num += 1;
    _ord.text = [NSString stringWithFormat:@"%ld.", num];
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
